﻿namespace IBTrader.Charts.Web
{
    using System.Collections.Generic;
    using System.Runtime.Serialization;

    [KnownType(typeof(Text))]
    [KnownType(typeof(DrawRect))]
    [KnownType(typeof(FillRect))]
    [KnownType(typeof(DrawPie))]
    [KnownType(typeof(FillPie))]
    [KnownType(typeof(Points))]
    //[KnownType(typeof(Func))]
    //[KnownType(typeof(Log))]
    //[KnownType(typeof(Config))]
    //[KnownType(typeof(Trade))]
    //[KnownType(typeof(Navigation))]
    public partial class Result
    {
        public ICollection<object> Items { get; set; }
        public bool Changed { get; set; }
        public Result()
        {
            Items = new List<object>();
        }
        internal void Add(object obj)
        {
            Items.Add(obj);
        }
    }
}
